<template lang="">
    <div>
        <h1>爷爷</h1>
        <!-- 爷传孙：传法和父传子一样 -->
        <father :grandpa-msg="msg" @sun="handle"></father>
    </div>
</template>

<script>
    import father from "./father.vue"
    export default {
        components:{
            father
        },
        data(){
            return{
                msg: 500
            }
        },
        methods:{
            handle(val){
                console.log(val)
            }
        }
    }
</script>

<style lang="scss" scoped>

</style>